<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/Common Module/FlashDisk.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_df4e0e4e72f77ab290fd1a24f190250a.html">Common Module</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">FlashDisk.h</div></div>
</div><!--header-->
<div class="contents">
<a href="_flash_disk_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#ifndef __FLASHDISK_H__</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#define __FLASHDISK_H__</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#include &quot;SWM341.h&quot;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="comment">/*******************************************************************************************************************************************</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="comment"> * Public Define</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span><span class="comment"> *******************************************************************************************************************************************/</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="_flash_disk_8h.html#ac7fa8f8ed89ae3a8c6533c8d69fb31a4">   38</a></span><span class="preprocessor">#define DATA_FLASH_BASE             (0)</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="_flash_disk_8h.html#a9fb3a80a00ad1fcd9df265451af5b2a7">   40</a></span><span class="preprocessor">#define DATA_FLASH_SIZE             (1024 * 1024 * 16 - DATA_FLASH_BASE)</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="_flash_disk_8h.html#ae9560b79ebc5c7d96bea3c0821a0373a">   42</a></span><span class="preprocessor">#define FLASH_SECTOR_SIZE               (512)</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="_flash_disk_8h.html#a216f057629f42c4fa1a2d14750ac4bf0">   44</a></span><span class="preprocessor">#define FLASH_CACHE_SIZE                (4096)</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="_flash_disk_8h.html#abb4210984e117a7e60518a7bcf68b0af">   46</a></span><span class="preprocessor">#define FLASH_PAGE_WRITE_BYTES_MAX      (256)</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span><span class="comment">/*******************************************************************************************************************************************</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span><span class="comment"> * Public Function</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span><span class="comment"> *******************************************************************************************************************************************/</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span><span class="keywordtype">void</span> <a class="code hl_function" href="_flash_disk_8h.html#a7655b0f2f5afc564c640878be5a50d41">FlashDiskRead</a>(uint32_t addr, uint32_t size, uint8_t *buff);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span><span class="keywordtype">void</span> <a class="code hl_function" href="_flash_disk_8h.html#ac9c9d4cc9fae5bccc09d1a80c7d42fc7">FlashDiskWrite</a>(uint32_t addr, uint32_t size, <span class="keyword">const</span> uint8_t *buff);</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span> </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span><span class="keywordtype">void</span> <a class="code hl_function" href="_flash_disk_8h.html#a5ab90dc9341a1459125a15b506cfe35a">FlashDiskFlush</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span> </div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span><span class="preprocessor">#endif  </span><span class="comment">// __FLASHDISK_H__</span></div>
<div class="ttc" id="a_flash_disk_8h_html_a5ab90dc9341a1459125a15b506cfe35a"><div class="ttname"><a href="_flash_disk_8h.html#a5ab90dc9341a1459125a15b506cfe35a">FlashDiskFlush</a></div><div class="ttdeci">void FlashDiskFlush(void)</div><div class="ttdoc">刷新脏缓冲区</div><div class="ttdef"><b>Definition:</b> <a href="_flash_disk_8c_source.html#l00162">FlashDisk.c:162</a></div></div>
<div class="ttc" id="a_flash_disk_8h_html_a7655b0f2f5afc564c640878be5a50d41"><div class="ttname"><a href="_flash_disk_8h.html#a7655b0f2f5afc564c640878be5a50d41">FlashDiskRead</a></div><div class="ttdeci">void FlashDiskRead(uint32_t addr, uint32_t size, uint8_t *buff)</div><div class="ttdoc">读取数据</div><div class="ttdef"><b>Definition:</b> <a href="_flash_disk_8c_source.html#l00071">FlashDisk.c:71</a></div></div>
<div class="ttc" id="a_flash_disk_8h_html_ac9c9d4cc9fae5bccc09d1a80c7d42fc7"><div class="ttname"><a href="_flash_disk_8h.html#ac9c9d4cc9fae5bccc09d1a80c7d42fc7">FlashDiskWrite</a></div><div class="ttdeci">void FlashDiskWrite(uint32_t addr, uint32_t size, const uint8_t *buff)</div><div class="ttdoc">写入数据</div><div class="ttdef"><b>Definition:</b> <a href="_flash_disk_8c_source.html#l00116">FlashDisk.c:116</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
